package com.ilvyou.data.lcs;

import java.sql.Timestamp;

/**
 * Created by Administrator on 2017/2/13.
 */
public class SetupTacticsEntity {
    private Short versionid;
    private Integer ruleid;
    private String rulecode;
    private Integer startamount;
    private Integer endamount;
    private Short startscore;
    private Short endscore;
    private String riskkind;
    private Integer levelid;
    private String levelcode;
    private Integer minday;
    private Integer maxday;
    private Short ldays;
    private Short pastflag;
    private String remark;
    private Timestamp createdon;
    private String createdby;
    private String createdname;
    private String createdip;

    public Short getVersionid() {
        return versionid;
    }

    public void setVersionid(Short versionid) {
        this.versionid = versionid;
    }

    public Integer getRuleid() {
        return ruleid;
    }

    public void setRuleid(Integer ruleid) {
        this.ruleid = ruleid;
    }

    public String getRulecode() {
        return rulecode;
    }

    public void setRulecode(String rulecode) {
        this.rulecode = rulecode;
    }

    public Integer getStartamount() {
        return startamount;
    }

    public void setStartamount(Integer startamount) {
        this.startamount = startamount;
    }

    public Integer getEndamount() {
        return endamount;
    }

    public void setEndamount(Integer endamount) {
        this.endamount = endamount;
    }

    public Short getStartscore() {
        return startscore;
    }

    public void setStartscore(Short startscore) {
        this.startscore = startscore;
    }

    public Short getEndscore() {
        return endscore;
    }

    public void setEndscore(Short endscore) {
        this.endscore = endscore;
    }

    public String getRiskkind() {
        return riskkind;
    }

    public void setRiskkind(String riskkind) {
        this.riskkind = riskkind;
    }

    public Integer getLevelid() {
        return levelid;
    }

    public void setLevelid(Integer levelid) {
        this.levelid = levelid;
    }

    public String getLevelcode() {
        return levelcode;
    }

    public void setLevelcode(String levelcode) {
        this.levelcode = levelcode;
    }

    public Integer getMinday() {
        return minday;
    }

    public void setMinday(Integer minday) {
        this.minday = minday;
    }

    public Integer getMaxday() {
        return maxday;
    }

    public void setMaxday(Integer maxday) {
        this.maxday = maxday;
    }

    public Short getLdays() {
        return ldays;
    }

    public void setLdays(Short ldays) {
        this.ldays = ldays;
    }

    public Short getPastflag() {
        return pastflag;
    }

    public void setPastflag(Short pastflag) {
        this.pastflag = pastflag;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Timestamp getCreatedon() {
        return createdon;
    }

    public void setCreatedon(Timestamp createdon) {
        this.createdon = createdon;
    }

    public String getCreatedby() {
        return createdby;
    }

    public void setCreatedby(String createdby) {
        this.createdby = createdby;
    }

    public String getCreatedname() {
        return createdname;
    }

    public void setCreatedname(String createdname) {
        this.createdname = createdname;
    }

    public String getCreatedip() {
        return createdip;
    }

    public void setCreatedip(String createdip) {
        this.createdip = createdip;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        SetupTacticsEntity that = (SetupTacticsEntity) o;

        if (versionid != null ? !versionid.equals(that.versionid) : that.versionid != null) return false;
        if (ruleid != null ? !ruleid.equals(that.ruleid) : that.ruleid != null) return false;
        if (rulecode != null ? !rulecode.equals(that.rulecode) : that.rulecode != null) return false;
        if (startamount != null ? !startamount.equals(that.startamount) : that.startamount != null) return false;
        if (endamount != null ? !endamount.equals(that.endamount) : that.endamount != null) return false;
        if (startscore != null ? !startscore.equals(that.startscore) : that.startscore != null) return false;
        if (endscore != null ? !endscore.equals(that.endscore) : that.endscore != null) return false;
        if (riskkind != null ? !riskkind.equals(that.riskkind) : that.riskkind != null) return false;
        if (levelid != null ? !levelid.equals(that.levelid) : that.levelid != null) return false;
        if (levelcode != null ? !levelcode.equals(that.levelcode) : that.levelcode != null) return false;
        if (minday != null ? !minday.equals(that.minday) : that.minday != null) return false;
        if (maxday != null ? !maxday.equals(that.maxday) : that.maxday != null) return false;
        if (ldays != null ? !ldays.equals(that.ldays) : that.ldays != null) return false;
        if (pastflag != null ? !pastflag.equals(that.pastflag) : that.pastflag != null) return false;
        if (remark != null ? !remark.equals(that.remark) : that.remark != null) return false;
        if (createdon != null ? !createdon.equals(that.createdon) : that.createdon != null) return false;
        if (createdby != null ? !createdby.equals(that.createdby) : that.createdby != null) return false;
        if (createdname != null ? !createdname.equals(that.createdname) : that.createdname != null) return false;
        if (createdip != null ? !createdip.equals(that.createdip) : that.createdip != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = versionid != null ? versionid.hashCode() : 0;
        result = 31 * result + (ruleid != null ? ruleid.hashCode() : 0);
        result = 31 * result + (rulecode != null ? rulecode.hashCode() : 0);
        result = 31 * result + (startamount != null ? startamount.hashCode() : 0);
        result = 31 * result + (endamount != null ? endamount.hashCode() : 0);
        result = 31 * result + (startscore != null ? startscore.hashCode() : 0);
        result = 31 * result + (endscore != null ? endscore.hashCode() : 0);
        result = 31 * result + (riskkind != null ? riskkind.hashCode() : 0);
        result = 31 * result + (levelid != null ? levelid.hashCode() : 0);
        result = 31 * result + (levelcode != null ? levelcode.hashCode() : 0);
        result = 31 * result + (minday != null ? minday.hashCode() : 0);
        result = 31 * result + (maxday != null ? maxday.hashCode() : 0);
        result = 31 * result + (ldays != null ? ldays.hashCode() : 0);
        result = 31 * result + (pastflag != null ? pastflag.hashCode() : 0);
        result = 31 * result + (remark != null ? remark.hashCode() : 0);
        result = 31 * result + (createdon != null ? createdon.hashCode() : 0);
        result = 31 * result + (createdby != null ? createdby.hashCode() : 0);
        result = 31 * result + (createdname != null ? createdname.hashCode() : 0);
        result = 31 * result + (createdip != null ? createdip.hashCode() : 0);
        return result;
    }
}
